<table class="layui-table text-center" lay-size="sm">
    <thead>
        <tr>
            <th><div class="text-left">账号</div></th>
            <th><div class="text-left">文件名称</div></th>
            <th>平台PDF</th>
            <th>总箱数</th>
            <th>状态</th>
            <th>备注</th>
            <th>操作</th>
        </tr>
    </thead>
    <tbody>
        {volist name="list" id="item"}
            <tr>
                <td class="text-left">{$item.account.username}</td>
                <td class="text-left">{$item.name_pdf}</td>
                <td>{if !empty($item.path_pdf)}<a href="{$item.path_pdf}" target="_blank"><i class="fa fa-file-pdf-o"></i></a> {/if}</td>
                <td>{$item.total_box}</td>
                <td>
                    {php}$status = $item['status'];{/php}
                    <a href="{:url('save',['box_id'=>$item['box_id'], 'status'=>abs(1-$status)])}" class="ajax-get" msg="0" style="font-size: 16px;">
                        {$status?'<i class="fa fa-unlock"></i>':'<i class="fa fa-lock text-red"></i>'}</a>
                </td>
                <td class="text-left">{$item.remark}</td>
                <td>
                    <a item="{$item.box_id}" class="layui-btn layui-btn-xs layui-btn-normal print-box">打印</a>
                    <a item="{$item.box_id}" class="layui-btn layui-btn-xs print-appoint-box">打印指定箱号</a>
                    <a href="{:url('add',['box_id'=>$item['box_id']])}" class="layui-btn layui-btn-xs layui-btn-warm ajax-form" title="平台条码">编辑</a>
                </td>
            </tr>
        {/volist}
        {empty name="list"}
        <tr>
            <td colspan="12">没有数据</td>
        </tr>
        {/empty}
    </tbody>
</table>
<div class="page">
    {$page|raw}
</div>